{template "content","header"}
 <div id="info">
  <div class="crumbs"><a href="{siteurl($siteid)}">首页</a><span> > </span>{catpos($catid)} 列表</div>
</div>

<?php
function leftmenu($rootid){
    ?>
    {pc:content action="category" catid="$rootid" siteid="$siteid" order="listorder ASC"}
      {loop $data $r}
      <?php
      if(count($data) == 0){
      return;
      }
      $c = $r['arrchildid'];
      $c = explode(',',$c);
      if(count($c) != 1){
      ?>
      <li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)">
      <a href="{$r[url]}">{$r[catname]}</a>
      <ul  class="left_submenu">
      <?php menu($r['catid']);?>
      </ul>
      </li>
      <?php
      }else if(count($c) == 1){
      ?>
      <li><a href="{$r[url]}">{$r[catname]}</a></li>
      <?php
      }
      ?>
      {/loop}
      {/pc}
      <?php 
      }
?>
<li style="border-radius: 4px 4px 0 0;width: 190px;list-style:none;
border-bottom: 1px solid white;
background-color: #356CB6;
height: 40px;
line-height: 40px;
text-indent: 2em;font-size:20px;color:#fff;
color: white;
font-weight: bold;
font-size: 20px;">
{$CATEGORYS[$parentid]['catname']}</li>
<div class="left_menu">
 <ul><li>
    {pc:get sql="select * from phpcms_category where catid in($catid)" return="data"}
        <?php $parentid = intval($data[0]['parentid']);?>
    {/pc}
    <?php leftmenu($parentid);?>
</ul>  
</div> 
     
<div id="con_r1">
  <h1>{$catname}</h1>
    <div id="news">
      <ul id="grid">
          {pc:content action="lists" catid="$catid" num="15" order="id DESC" page="$page"}
                    {loop $data $r}
                      <li>
                      <span>{date('Y-m-d',$r[inputtime])}</span>
                      <a href="{$r[url]}" target="_blank"{title_style($r[style])}><?php echo str_cut($r[title],50)?></a>
                      </li>
                    <!--   {if $n%5==0}<li class="bk20 hr"style="border-bottom:dashed 1px #ffffff;"></li>{/if} -->
                    {/loop}
            <div id="pages" class="text-c">{$pages}</div>
          {/pc}
        </ul>
      </div>
  </div>
{template "content","footer"}